from flask import Blueprint, render_template, session

index2 = Blueprint("index2",__name__)

@index2.route("/index-new")
def my_index():
    # session参数的传递
    session["username"] = "大周老师"


    article = {
        "title": "论Python语言的学习难度",
        "count": 2001
    }

    return render_template("index2.html",article=article)